import request from '@/utils/request'

// 查询招聘需求列表
export function listRecruitDemand(query) {
  return request({
    url: '/hrm/recruitDemand/list',
    method: 'get',
    params: query
  })
}

// 查询招聘需求详细
export function getRecruitDemand(id) {
  return request({
    url: '/hrm/recruitDemand/' + id,
    method: 'get'
  })
}

// 新增招聘需求
export function addRecruitDemand(data) {
  return request({
    url: '/hrm/recruitDemand',
    method: 'post',
    data: data
  })
}

// 修改招聘需求
export function updateRecruitDemand(data) {
  return request({
    url: '/hrm/recruitDemand',
    method: 'put',
    data: data
  })
}

// 删除招聘需求
export function delRecruitDemand(id) {
  return request({
    url: '/hrm/recruitDemand/' + id,
    method: 'delete'
  })
}




// 获取需求选项
export function getDemandOptions(){
    return request({
        url: '/hrm/recruitDemand/getDemandOptions',
        method: 'get'
    })
}
